package cn.springcloud.fix.es.model;

import lombok.Data;

@Data
public class Employee {

    private String name;
    private Integer age;
    private Double salary;
    private Long mobile;
    private User user;

    public Employee(String name, Integer age, Double salary, Long mobile) {
        this.name = name;
        this.age = age;
        this.salary = salary;
        this.mobile = mobile;
        User user = new User();
        user.setAge(age);
        this.user = user;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Long getMobile() {
        return mobile;
    }

    public void setMobile(Long mobile) {
        this.mobile = mobile;
    }
}
